package org.aphasia4j.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

/**
 * 
 * @author hillger.t
 */
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class Practice extends Model {	
	@Column(nullable = false)
	private String name;
	
  @Enumerated(EnumType.ORDINAL)
  private Result result = Result.INCORRECT;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

  public Result getResult() {
    return result;
  }

  public void setResult(Result result) {
    this.result = result;
  }
}
